import API from '@/network/request'

export default {
  /**
   * 查询登录平台的基础信息
   * @param {*} data
   */
  getLoginDetail(data) {
    return API({
      url: '/organ/oauth/sas/query',
      method: 'POST',
      data
    })
  },

  /**
   * @description:添加企业授权
   * @param:
   * @return:
   * @author: eaglehuang720@foxmail.com
   * @date: 2021/4/22
   */
  addAuth(data) {
    return API({
      url: '/organ/oauth/sas/dis2',
      method: 'POST',
      data
    })
  },

  /**
   * @description: 新增企业
   * @param:
   * @return:
   * @author: eaglehuang720@foxmail.com
   * @date: 2021/4/21
   */
  addEms(data) {
    return API({
      url: '/organ/oauth/create',
      method: 'POST',
      data
    })
  }
}
